<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<jsp:include page="../layout/topPg.jsp" />

<!-- INI editSongPg -->

<div id="fieldBox">
	<form action="saveSong.html" method="POST">
		<div class="labelField">
			Artist
		</div>
		<div class="middleField">
			<input type="text" name="artist" value="${song.artist}"/>
		</div>
		<br>
		<div class="labelField">
			Title
		</div>
		<div class="middleField">
			<input type="text" name="song" value="${song.song}"/>
		</div>
		<br>
		<br>
		<div class="labelField alignTop">
			Comments
		</div>
		<div class="comentsField">
			<textarea name="coments">${song.coments}</textarea>
		</div>
		<br>
		<div class="labelField">
			Youtube video id
		</div>
		<div class=normalField>
			<input type="text" name="video" value="${song.video}"/>
		</div>
		<br>
		<div class="labelField">
			Tune
		</div>
		<div class="middleField">
			<select name="tune">
				<option value="">-</option>
				<c:if test="${song.tune == 'Standard'}">
					<option selected="selected" value="Standard">Standard</option>
				</c:if>
				<c:if test="${song.tune != 'Standard'}">
					<option value="Standard">Standard</option>
				</c:if>
				<c:if test="${song.tune == '- 1/2 tone'}">
					<option selected="selected" value="- 1/2 tone">Tune down 1/2 step</option>
				</c:if>
				<c:if test="${song.tune != '- 1/2 tone'}">
					<option value="- 1/2 tone">Tune down 1/2 step</option>
				</c:if>
			</select>
		</div>
		<br>
		<br>
		<table class="difficultyTable diffTableField">
			<tr>
					<th id="difField"> </th>
					<th id="a">Guitar1</th>
					<th id="a">Guitar2</th>
					<th id="a">Guitar3</th>
					<th id="a">Bass</th>
					<th id="a">Solo</th>
				</tr>
			<tr>
				<td id=difField>Difficulty</td>
				<td><div class="levelField"><input name="guitar1" value="${song.guitar1}"></input></div></td>
				<td><div class="levelField"><input name="guitar2" value="${song.guitar2}"></input></div></td>
				<td><div class="levelField"><input name="guitar3" value="${song.guitar3}"></input></div></td>
				<td><div class="levelField"><input name="bass" value="${song.bass}"></input></div></td>
				<td><div class="levelField"><input name="solo" value="${song.solo}"></input></div></td>
			</tr>
		</table>
		<br>
		<div class="labelField big">
			Tablature
		</div>
		<br>
		<div class="labelField">
			Download link
		</div>
		<div class="linkField">
			<input type="text" name="tabLink" value="${song.tabLink}"/>
		</div>
		<br>
		<div class="labelField">
			Tab filename
		</div>
		<div class="linkField">
			<input name="tabName" value="${song.tabName}"/>
		</div>
		<br>
		<div class="labelField">
			Songsterr link
		</div>
		<div class="linkField">
			<input name="songsterr" value="${song.songsterr}"/>
		</div>
		<br>
		<div class="labelField">
			Summary image
		</div>
		<div class="linkField">
			<input name="summary" value="${song.summary}"/>
		</div>
		<br>
		<div class="rightButton">
		
			<c:if test="${song.id >= 0}">
				<input type="hidden" name="id" value="${song.id}">
			</c:if>
			<c:if test="${song.id == null}">
				<input type="hidden" name="id" value="0">
			</c:if>
			
			<input type="image" src="../images/buttons/addSong.png" alt="Save"/>
		</div>
	</form>
	<c:if test="${song.id != null}">
		<form action="remove${song.id}.html" method="POST">
			<input type="image" src="../images/buttons/deleteSong.png" alt="Delete"/>
		</form>
	</c:if>
</div>
	
<!-- FI editSongPg -->

<jsp:include page="../layout/footerPg.jsp" />
